package ru.megazlo.basemvc.dto.view;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Короткая новость для отображения в списке
 */
public class NewsListView {
	private int carma;
	private Integer commentsCount;
	private Long id;
	private LocalDateTime dateCreation;
	private String title;
	private String shortText;
	private String picUrl;

	public NewsListView() {
	}

	public NewsListView(Integer commentsCount, LocalDateTime dateCreation, String title, String shortText) {
		this.commentsCount = commentsCount;
		this.dateCreation = dateCreation;
		this.title = title;
		this.shortText = shortText;
	}

	public NewsListView(Serializable id, Integer commentsCount, LocalDateTime dateCreation, String title, String shortText) {
		this.id = (Long) id;
		this.commentsCount = commentsCount;
		this.dateCreation = dateCreation;
		this.title = title;
		this.shortText = shortText;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public int getCarma() {
		return carma;
	}

	public void setCarma(int carma) {
		this.carma = carma;
	}

	public Integer getCommentsCount() {
		return commentsCount;
	}

	public void setCommentsCount(Integer commentsCount) {
		this.commentsCount = commentsCount;
	}

	public LocalDateTime getDateCreation() {
		return dateCreation;
	}

	public void setDateCreation(LocalDateTime dateCreation) {
		this.dateCreation = dateCreation;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getShortText() {
		return shortText;
	}

	public void setShortText(String shortText) {
		this.shortText = shortText;
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}
}
